/*
 * @Description:
 * @Author: chenju
 * @Date: 2023-02-01 16:52:45
 * @LastEditors: chenju
 * @LastEditTime: 2023-02-01 17:24:04
 */
import { dialogEmits, dialogProps } from './dialog';
import type { ExtractPropTypes } from 'vue';

export const drawerProps = {
  ...dialogProps,
  direction: {
    type: String,
    default: 'rtl',
    values: ['ltr', 'rtl', 'ttb', 'btt']
  },
  size: {
    type: [String, Number],
    default: '30%'
  },
  withHeader: {
    type: Boolean,
    default: true
  },
  modalFade: {
    type: Boolean,
    default: true
  }
};

export type DrawerProps = ExtractPropTypes<typeof drawerProps>;

export const drawerEmits = dialogEmits;
